package com.zyd.service.login;

import com.zyd.pojo.User;
import org.springframework.stereotype.Service;

import java.io.IOException;

@Service
public interface LoginService {


    /**
     *
     * @param username
     * @param password
     * @return
     */
    User login(String username, String password);


    /**
     *
     * @param mobile 手机号
     * @return
     */
    User findByMobile(String mobile);



    String getCode(String mobile) throws IOException, Exception;
}
